package org.ix.gateway.route.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.ix.common.annotation.SetField;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 *
 * @author 郗世豪（rarexixi@sina.com）
 */
@Getter
@Setter
@ToString
public class BaseEntity implements Serializable {

    /**
     * 是否删除
     */
    @ApiModelProperty(hidden = true)
    protected Integer deleted;

    /**
     * 创建人
     */
    @ApiModelProperty(hidden = true)
    @SetField(field = "name", types = {"create"})
    protected String createUser;

    /**
     * 修改人
     */
    @ApiModelProperty(hidden = true)
    @SetField(field = "name", types = {"create", "update"})
    protected String updateUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(hidden = true)
    protected LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(hidden = true)
    protected LocalDateTime updateTime;
}
